package com.gjy.mongo.sp;

import lombok.Builder;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

/**
 * @author 宫静雨
 * @version 1.0
 * @since 2023-01-30 11:20:41
 */
@Data
@Document(collection = "person")
@Builder
public class Person {

    @Id
    private String id;

    private PersonAttrs personAttrs;

    private Book book;
}
